package com.ruoyi.duanju.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.duanju.mapper.DjInputFileDetailMapper;
import com.ruoyi.duanju.domain.DjInputFileDetail;
import com.ruoyi.duanju.service.IDjInputFileDetailService;

/**
 * 导入详情Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-07-01
 */
@Service
public class DjInputFileDetailServiceImpl implements IDjInputFileDetailService 
{
    @Autowired
    private DjInputFileDetailMapper djInputFileDetailMapper;

    /**
     * 查询导入详情
     * 
     * @param id 导入详情主键
     * @return 导入详情
     */
    @Override
    public DjInputFileDetail selectDjInputFileDetailById(Long id)
    {
        return djInputFileDetailMapper.selectDjInputFileDetailById(id);
    }

    /**
     * 查询导入详情列表
     * 
     * @param djInputFileDetail 导入详情
     * @return 导入详情
     */
    @Override
    public List<DjInputFileDetail> selectDjInputFileDetailList(DjInputFileDetail djInputFileDetail)
    {
        return djInputFileDetailMapper.selectDjInputFileDetailList(djInputFileDetail);
    }

    /**
     * 新增导入详情
     * 
     * @param djInputFileDetail 导入详情
     * @return 结果
     */
    @Override
    public int insertDjInputFileDetail(DjInputFileDetail djInputFileDetail)
    {
        djInputFileDetail.setCreateTime(DateUtils.getNowDate());
        return djInputFileDetailMapper.insertDjInputFileDetail(djInputFileDetail);
    }

    /**
     * 修改导入详情
     * 
     * @param djInputFileDetail 导入详情
     * @return 结果
     */
    @Override
    public int updateDjInputFileDetail(DjInputFileDetail djInputFileDetail)
    {
        djInputFileDetail.setUpdateTime(DateUtils.getNowDate());
        return djInputFileDetailMapper.updateDjInputFileDetail(djInputFileDetail);
    }

    /**
     * 批量删除导入详情
     * 
     * @param ids 需要删除的导入详情主键
     * @return 结果
     */
    @Override
    public int deleteDjInputFileDetailByIds(Long[] ids)
    {
        return djInputFileDetailMapper.deleteDjInputFileDetailByIds(ids);
    }

    /**
     * 删除导入详情信息
     * 
     * @param id 导入详情主键
     * @return 结果
     */
    @Override
    public int deleteDjInputFileDetailById(Long id)
    {
        return djInputFileDetailMapper.deleteDjInputFileDetailById(id);
    }
}
